#!/bin/sh
#
# 简单写一下脚本的功能。
#
#
#

if [ $# -ne 1 ]; then
	echo "Usage: $0 卦名[编号]."
	exit
fi

guafile="/Users/hbaolong/workshop/gitee/3place/0600论语/64gua.md"


grep $1 $guafile |awk '{print "卦名: " $2 "\n卦辞: " $3 "\n" $4 "\n" $5 "\n" $6 "\n" $7 "\n" $8 "\n" $9 "\n" $10 "\n" $11 "\n" $12 "\n" $13}' | sed -e "/^$/d" |sed -e "s/$/\n/"

